package com.ken.chapter10

fun main(arg: Array<String>) {
    testData(200.0, 300.0)
    testData(w = 200.0, h = 400.0)
    testData(200.0, h = 333.0)
//    testData(w = 343.0,5454.0) //编译错误
    testData(h = 887.0,w = 2323.0)

}

fun testData(w: Double, h: Double): Unit {
    var v = w * h
    println("面积: $v")
}